@extends('layouts.front')

@section('title', ' - 实名认证')

@section('content')
@push('styles')
@endpush

<div class="cert cert-index">
    <div class="weui-cells">
        <a class="weui-cell" href="{{route('member.personalCert')}}">
            <div class="weui-cell__hd">
                <i class="icon iconfont icon-smrz"></i>
            </div>

            <div class="weui-cell__bd">
                <p>实名认证</p>
            </div>

            <div class="weui-cell__ft">
                @switch($user->check)
                    @case(-1)
                    <div class="cert-tag" style="color: #ff5722; border-color: #ff5722" >
                        未通过认证
                    </div>
                    @break
                    @case(0)
                    <div class="cert-tag" style="color: #ffc107; border-color: #ffc107">
                        未认证
                    </div>
                    @break
                    @case(1)
                    <div class="cert-tag" style="color: #ffc107; border-color: #ffc107">
                        正在审核
                    </div>
                    @break
                    @case(2)
                    <div class="cert-tag">
                        已验证
                    </div>
                    @break
                @endswitch
            </div>
        </a>

        <a class="weui-cell" href="{{route('member.enterpriseCert')}}">
            <div class="weui-cell__hd">
                <i class="icon iconfont icon-qyrz"></i>
            </div>

            <div class="weui-cell__bd">
                <p>企业认证</p>
            </div>

            <div class="weui-cell__ft">
                @switch($user->ent_check)
                    @case(-1)
                    <div class="cert-tag" style="color: #ff5722; border-color: #ff5722" >
                        未通过认证
                    </div>
                    @break
                    @case(0)
                    <div class="cert-tag" style="color: #ffc107; border-color: #ffc107">
                        未认证
                    </div>
                    @break
                    @case(1)
                    <div class="cert-tag" style="color: #ffc107; border-color: #ffc107">
                        正在审核
                    </div>
                    @break
                    @case(2)
                    <div class="cert-tag">
                        已验证
                    </div>
                    @break
                @endswitch
            </div>
        </a>
    </div>
</div>

@section('tabbar')
    @parent
@endsection

@push('scripts')
<script>
var vm = new Vue({
    el: '#app'
});
</script>
@endpush
@endsection
